package com.example.springboothomework.entity.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;

/**
 * @author chenjianhao
 * @date 2025/6/9
 *
 * 员工excel导出类
 */
@Getter
@Setter
@AllArgsConstructor
public class EmployeeExcelExport {

    /**
     * ID
     */
    @ExcelProperty(value = "ID",order=0)
    private Long id;

    /**
     * 员工姓名
     */
    @ExcelProperty(value ="员工姓名",order=1)
    private String name;

    /**
     * 年龄
     */
    @ExcelProperty(value ="年龄",order=2)
    private Integer age;


    /**
     * 入职日期
     */
    @ExcelProperty(value ="入职日期",order=3)
    @DateTimeFormat("yyyy-MM-dd")
    private LocalDate employmentDate;


    /**
     * 在职状态
     */
    @ExcelProperty(value ="在职状态",order=4)
    private Boolean employed;

    /**
     * 所属公司
     */
    @ExcelProperty(value ="所属公司",order=5)
    private String companyName;


}
